# #todo 语法:
# string.startswith("开头字符")
# string.endswith("结尾字符"

str1 = 'DFFF'
print(str1.startswith('DF'))    # True
print(str1.startswith('DD'))      #False

print(str1.endswith('FF'))     # True
print(str1.endswith('yy'))  # False
